package com.fesine.ch02.synBlockString2;

/**
 * @description: 验证synchronized(非this对象)与同步方法是异步调用的效果
 * 如果是synchronized(this)就是同步调用的效果
 * @author: Fesine
 * @createTime:2016/7/5 8:58
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/5 8:58
 */
public class Run {
    public static void main(String[] args) {
        Service service = new Service();
        ThreadA a = new ThreadA(service);
        a.start();
        ThreadB b = new ThreadB(service);
        b.start();
    }
}
